.class public Lcom/netease/newsreader/activity/AccountWebViewRegister;
.super Lcom/netease/newsreader/activity/BaseActivity;
.source "AccountWebViewRegister.java"


# instance fields
.field private loadingbar:Landroid/widget/LinearLayout;

.field private registerWebview:Landroid/webkit/WebView;


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 19
    invoke-direct {p0}, Lcom/netease/newsreader/activity/BaseActivity;-><init>()V

    return-void
.end method

.method static synthetic access$0(Lcom/netease/newsreader/activity/AccountWebViewRegister;)Landroid/webkit/WebView;
    .locals 1
    .parameter

    .prologue
    .line 21
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountWebViewRegister;->registerWebview:Landroid/webkit/WebView;

    return-object v0
.end method

.method static synthetic access$1(Lcom/netease/newsreader/activity/AccountWebViewRegister;)Landroid/widget/LinearLayout;
    .locals 1
    .parameter

    .prologue
    .line 22
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountWebViewRegister;->loadingbar:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method private findViewsById()V
    .locals 2

    .prologue
    .line 52
    const v0, 0x7f0c002b

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/AccountWebViewRegister;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/webkit/WebView;

    iput-object v0, p0, Lcom/netease/newsreader/activity/AccountWebViewRegister;->registerWebview:Landroid/webkit/WebView;

    .line 53
    const v0, 0x7f0c0015

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/AccountWebViewRegister;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/netease/newsreader/activity/AccountWebViewRegister;->loadingbar:Landroid/widget/LinearLayout;

    .line 54
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountWebViewRegister;->loadingbar:Landroid/widget/LinearLayout;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 55
    return-void
.end method

.method private setListener()V
    .locals 2

    .prologue
    .line 59
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountWebViewRegister;->registerWebview:Landroid/webkit/WebView;

    new-instance v1, Lcom/netease/newsreader/activity/AccountWebViewRegister$2;

    invoke-direct {v1, p0}, Lcom/netease/newsreader/activity/AccountWebViewRegister$2;-><init>(Lcom/netease/newsreader/activity/AccountWebViewRegister;)V

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->setWebViewClient(Landroid/webkit/WebViewClient;)V

    .line 109
    return-void
.end method


# virtual methods
.method public goBackClick(Landroid/view/View;)V
    .locals 0
    .parameter "view"

    .prologue
    .line 112
    invoke-virtual {p0}, Lcom/netease/newsreader/activity/AccountWebViewRegister;->finish()V

    .line 113
    return-void
.end method

.method public onApplyTheme()V
    .locals 3

    .prologue
    .line 128
    invoke-super {p0}, Lcom/netease/newsreader/activity/BaseActivity;->onApplyTheme()V

    .line 129
    invoke-virtual {p0}, Lcom/netease/newsreader/activity/AccountWebViewRegister;->getThemeSettingsHelper()Lcom/netease/newsreader/util/ThemeSettingsHelper;

    move-result-object v0

    .line 130
    .local v0, themeSettingsHelper:Lcom/netease/newsreader/util/ThemeSettingsHelper;
    const v1, 0x7f0c0001

    const v2, 0x7f0200fe

    invoke-virtual {v0, p0, v1, v2}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setViewBackgroud(Landroid/app/Activity;II)V

    .line 131
    const v1, 0x7f0c0003

    const v2, 0x7f080025

    invoke-virtual {v0, p0, v1, v2}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/app/Activity;II)V

    .line 133
    const v1, 0x7f0c0002

    const v2, 0x7f020041

    invoke-virtual {v0, p0, v1, v2}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setImageViewSrc(Landroid/app/Activity;II)V

    .line 135
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 5
    .parameter "savedInstanceState"

    .prologue
    const/4 v3, 0x0

    const/4 v2, 0x1

    .line 25
    invoke-super {p0, p1}, Lcom/netease/newsreader/activity/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    .line 26
    invoke-virtual {p0, v2}, Lcom/netease/newsreader/activity/AccountWebViewRegister;->requestWindowFeature(I)Z

    .line 27
    const v0, 0x7f030007

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/AccountWebViewRegister;->setContentView(I)V

    .line 28
    invoke-direct {p0}, Lcom/netease/newsreader/activity/AccountWebViewRegister;->findViewsById()V

    .line 29
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountWebViewRegister;->registerWebview:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/webkit/WebSettings;->setJavaScriptEnabled(Z)V

    .line 30
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountWebViewRegister;->registerWebview:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v0

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Landroid/webkit/WebSettings;->setCacheMode(I)V

    .line 34
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountWebViewRegister;->registerWebview:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/webkit/WebSettings;->setSaveFormData(Z)V

    .line 35
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountWebViewRegister;->registerWebview:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/webkit/WebSettings;->setSavePassword(Z)V

    .line 36
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountWebViewRegister;->registerWebview:Landroid/webkit/WebView;

    invoke-virtual {v0, v2}, Landroid/webkit/WebView;->clearCache(Z)V

    .line 37
    invoke-static {p0}, Lcom/netease/newsreader/util/Tools;->isCMWAPMobileNet(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 38
    invoke-static {}, Landroid/webkit/WebView;->enablePlatformNotifications()V

    .line 39
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountWebViewRegister;->registerWebview:Landroid/webkit/WebView;

    const-string v1, "10.0.0.172"

    const-string v2, "80"

    const-string v3, ""

    const-string v4, ""

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/webkit/WebView;->setHttpAuthUsernamePassword(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 41
    :cond_0
    invoke-direct {p0}, Lcom/netease/newsreader/activity/AccountWebViewRegister;->setListener()V

    .line 43
    new-instance v0, Lcom/netease/newsreader/activity/AccountWebViewRegister$1;

    invoke-direct {v0, p0}, Lcom/netease/newsreader/activity/AccountWebViewRegister$1;-><init>(Lcom/netease/newsreader/activity/AccountWebViewRegister;)V

    .line 47
    invoke-virtual {v0}, Lcom/netease/newsreader/activity/AccountWebViewRegister$1;->start()V

    .line 48
    return-void
.end method

.method protected onDestroy()V
    .locals 1

    .prologue
    .line 118
    invoke-super {p0}, Lcom/netease/newsreader/activity/BaseActivity;->onDestroy()V

    .line 119
    invoke-static {p0}, Lcom/netease/newsreader/util/Tools;->isCMWAPMobileNet(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 120
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountWebViewRegister;->registerWebview:Landroid/webkit/WebView;

    if-eqz v0, :cond_0

    .line 121
    invoke-static {}, Landroid/webkit/WebView;->disablePlatformNotifications()V

    .line 124
    :cond_0
    return-void
.end method
